@echo off
echo 启动新闻发布和审核系统...

echo.
echo 1. 启动后端服务...
cd ke-manage
start "Backend Server" cmd /k "mvn spring-boot:run"

echo.
echo 2. 等待后端启动完成...
timeout /t 10 /nobreak

echo.
echo 3. 启动前端服务...
cd ..\vue-user
start "Frontend Server" cmd /k "npm run dev"

echo.
echo 服务启动完成！
echo 后端地址: http://localhost:8080
echo 前端地址: http://localhost:5180
echo API文档: http://localhost:8080/swagger-ui.html
echo 测试页面: http://localhost:5180/test/api
echo.
pause 